package com.hugoo.form.xo;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Lovelock.Chan
 */
public class XFlt extends XVar {

    private String tpl;//模板文件 @id代表
    private String nrp;//替代文件
    private List<XFltPara> xFltParaList = new ArrayList();
    private XSql xSql;

    public XSql getxSql() {
        return xSql;
    }

    public void setxSql(XSql xSql) {
        this.xSql = xSql;
    }

    public void addXFltPara(XFltPara xf) {
        xf.setxFlt(this);
        xFltParaList.add(xf);
    }

    public List<XFltPara> getxFltParaList() {
        return xFltParaList;
    }

    public void setxFltParaList(List<XFltPara> xFltParaList) {
        this.xFltParaList = xFltParaList;
    }

    public String getTpl() {
        return tpl;
    }

    public void setTpl(String tpl) {
        this.tpl = tpl.toUpperCase();
    }

    public String getNrp() {
        return nrp;
    }

    public void setNrp(String nrp) {
        this.nrp = nrp;
    }

    public String getParentDbl() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
